#include <iostream>
#include "SharedMemory.hpp"

int main()
{
    SharedMemory<int> shm;
    shm.GetShmid();
    int *b = shm.GrtSharedMemory();
    int n = 10;
    while(n)
    {
        std::cout << "读到的内容为:"<< (*b) << std::endl;
        n--;
    }
    return 0;
}